# Next.js

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/langchain-ai/langchain-nextjs-template)

If you're looking to use LangChain in a [Next.js](https://nextjs.org) project, you can check out the
[official Next.js starter template](https://github.com/langchain-ai/langchain-nextjs-template).

It shows off streaming and customization, and contains several use-cases around chat, structured output,
agents, and retrieval that demonstrate how to use different modules in LangChain together.

![Next.js template demo screenshot](/img/nextjs-agent-conversation.png)

You can check it out here:

- https://github.com/langchain-ai/langchain-nextjs-template
